package com.example.demo.service;

import com.example.demo.model.UserModer;
import com.example.demo.dao.UserMapper;
import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MySQLUserService {

  @Autowired
  private UserMapper userMapper;

  public List<UserModer> select() {
    return userMapper.select();
  }

  // 登录检查
  public List<UserModer> checkUser(String name, String password) {
    return userMapper.checkUser(name, password);
  }

  public int insert(String name) {
    return userMapper.insert(name);
  }
}